﻿namespace Sucdri.Infrastructure.Core.DbUtility
{
   public static class TransactionManager
   {
      public static void BeginTransaction()
      {
         DbFactory.BeginTransaction();
      }

      public static void Commit()
      {
         DbFactory.Commit();
      }

      public static void RollBack()
      {
         DbFactory.Rollback();
      }

      public static void BeginTransaction(string dbName)
      {
         DbFactory.BeginTransaction(dbName);
      }

      public static void Commit(string dbName)
      {
         DbFactory.Commit(dbName);
      }

      public static void RollBack(string dbName)
      {
         DbFactory.Rollback(dbName);
      }

   }

}
